package com.hjrpc.babyyamall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjrpc.babyyamall.product.entity.AttrEntity;
import com.hjrpc.babyyamall.product.entity.ProductAttrValueEntity;
import com.hjrpc.babyyamall.product.vo.AttrRespVo;
import com.hjrpc.babyyamall.product.vo.AttrVo;
import com.hjrpc.babyyamall.product.vo.SkuItemVo;
import com.hjrpc.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author hujian
 * @email 502361472@qq.com
 * @date 2021-08-07 12:54:21
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils listWithType(Map<String, Object> params, String attrType, Long categoryId);

    void saveWithGroup(AttrVo attrVo);

    AttrRespVo getAttrDetail(Long attrId);

    void updateDetail(AttrVo attrVo);

    List<ProductAttrValueEntity> list4Spu(Long spuId);

    List<SkuItemVo.SpuItemSaleAttr> querySkuSaleInfo(Long spuId);
}

